﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PerformanceProfiler;
using System.Diagnostics;

namespace SimpleListTest
{
    class Program
    {
        /// <summary>
        /// Swap the first two lines in order to see the profiler working.
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            //List<int> list = new List<int>();
            dynamic list = new List<int>().GetProfiler();

            foreach (var v in Enumerable.Range(1, 1000))
            {
                list.Insert(0, v);
                list.Sort();
                int i = list.Count;
                Debug.WriteLine("list.Count = {0}", i);
            }
            Console.ReadKey();
        }
    }
}
